export default defineComponent({
	name:'tsx',
	setup(){
		const a = ref(1)

		setInterval(() => {
			a.value += 1
		},100)

		const handle = () => {
			console.log('aaa')
		}

		let arr = [1,2,3,4,5,6]

		const renderMain = (a) => <main>this is main{a}</main>;

		return () => (
				<section>
					{renderMain(1)}
					{
						arr.map(item => {
							return <div class={'caret-amber-800'}>{item}</div>
						})
					}
				</section>
		)
	}
})
